package com.zyc.decorateMode.clothes;

/**
 * @author zyc
 * @create 2022--06--15 17:06
 */
public abstract class Clothe extends Person{

    protected Person component;


    public void decorate(Person component) {
        this.component = component;
    }

    @Override
    public void showSelf() {
        if (component != null) {
            component.showSelf();
        }
    }
}
